package gov.pbc.nn.kjgl.entity;

import java.util.List;

import gov.pbc.nn.core.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.bstek.bdf2.core.business.IDept;
import com.bstek.dorado.annotation.PropertyDef;

/**
 * 档案分类
 */
@Entity
@Table(name = "T_ARCHIVES")
public class Archives extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@Column(name = "NAME_", length = 60)
	@PropertyDef(label = "档案名称", description = "档案名称:档案名称")
	private String name;

	@Column(name = "PARENT_ID_", length = 60)
	@PropertyDef(label = "档案上级ID", description = "档案上级ID:档案上级ID")
	private String parentId;

	@Column(name = "REMARK_", length = 120)
	@PropertyDef(label = "备注", description = "备注:备注")
	private String remark;
	
	@Column(name = "CODE_", length = 100)
	@PropertyDef(label = "编码", description = "编码:编码")
	private String code;
	
	
	@Column(name = "DEPT_ID_", length = 60)
	@PropertyDef(label = "部门ID", description = "部门ID:部门ID")
	private String deptId;
	
	
	
	
	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	@Transient
	private List<IDept> children;

	public String getName() {
		return name;
	}

	public void setName(String Name) {
		this.name = Name;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public List<IDept> getChildren() {
		return children;
	}

	public void setChildren(List<IDept> children) {
		this.children = children;
	}
	
	

}
